package com.example.demodao.mapper;

import com.example.demodao.entity.TbInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.cursor.Cursor;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author rosszhang
 * @since 2023-02-24
 */
public interface TbInfoMapper extends BaseMapper<TbInfo> {

    @Select("select * from tb_info limit #{limit}")
    Cursor<TbInfo> scan(@Param("limit") int limit);
}
